package cn.t.service.order;

import cn.t.model.order.RegionDO;
import cn.t.repository.order.RegionRepository;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 省市区表领域服务
 */
@Slf4j
@Service
@AllArgsConstructor
public class RegionService {

    private final RegionRepository regionRepository;

    public List<RegionDO> list(String parentCode) {
        return regionRepository.getRegions(parentCode);
    }
}
